package com.cow.sram.data.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;


/**
 * The persistent class for the resourceinfo database table.
 * 
 */
@Entity
@Table(name="resourceinfo")
@NamedQuery(name="Resourceinfo.findAll", query="SELECT r FROM Resourceinfo r")
public class Resourceinfo implements Serializable {
	private static final long serialVersionUID = 1L;

	@Transient
	List<Resourceinfo> childList;
	@Transient
	private Integer grantFlag;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer resourceid;

	@Column(name="father_id")
	private Integer fatherId;

	@Column(name="has_child")
	private Integer hasChild;

	@Column(name="is_tree")
	private Integer isTree;

	private String name;

	@Column(name="order_no")
	private Integer orderNo;

	private String resourcetype;

	private String subsidiary1;
	private String subsidiary2;
	private String subsidiary3;
	private String subsidiary4;
	private String subsidiary5;
	private String subsidiary6;
	private String subsidiary7;
	private String subsidiary8;
	private String subsidiary9;
	private String subsidiary10;

	private String systemid;

	private String url;

	@Column(name="valid_flag")
	private Integer validFlag;

	public Resourceinfo() {
	}

	public Integer getResourceid() {
		return this.resourceid;
	}

	public void setResourceid(Integer resourceid) {
		this.resourceid = resourceid;
	}

	public Integer getFatherId() {
		return this.fatherId;
	}

	public void setFatherId(Integer fatherId) {
		this.fatherId = fatherId;
	}

	public Integer getHasChild() {
		return this.hasChild;
	}

	public void setHasChild(Integer hasChild) {
		this.hasChild = hasChild;
	}

	public Integer getIsTree() {
		return this.isTree;
	}

	public void setIsTree(Integer isTree) {
		this.isTree = isTree;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getOrderNo() {
		return this.orderNo;
	}

	public void setOrderNo(Integer orderNo) {
		this.orderNo = orderNo;
	}

	public String getResourcetype() {
		return this.resourcetype;
	}

	public void setResourcetype(String resourcetype) {
		this.resourcetype = resourcetype;
	}

	public String getSubsidiary1() {
		return this.subsidiary1;
	}

	public void setSubsidiary1(String subsidiary1) {
		this.subsidiary1 = subsidiary1;
	}

	public String getSubsidiary2() {
		return this.subsidiary2;
	}

	public void setSubsidiary2(String subsidiary2) {
		this.subsidiary2 = subsidiary2;
	}

	public String getSubsidiary3() {
		return this.subsidiary3;
	}

	public void setSubsidiary3(String subsidiary3) {
		this.subsidiary3 = subsidiary3;
	}

	public String getSubsidiary4() {
		return this.subsidiary4;
	}

	public void setSubsidiary4(String subsidiary4) {
		this.subsidiary4 = subsidiary4;
	}

	public String getSubsidiary5() {
		return this.subsidiary5;
	}

	public void setSubsidiary5(String subsidiary5) {
		this.subsidiary5 = subsidiary5;
	}

	public String getSubsidiary6() {
		return subsidiary6;
	}

	public void setSubsidiary6(String subsidiary6) {
		this.subsidiary6 = subsidiary6;
	}

	public String getSubsidiary7() {
		return subsidiary7;
	}

	public void setSubsidiary7(String subsidiary7) {
		this.subsidiary7 = subsidiary7;
	}

	public String getSubsidiary8() {
		return subsidiary8;
	}

	public void setSubsidiary8(String subsidiary8) {
		this.subsidiary8 = subsidiary8;
	}

	public String getSubsidiary9() {
		return subsidiary9;
	}

	public void setSubsidiary9(String subsidiary9) {
		this.subsidiary9 = subsidiary9;
	}

	public String getSubsidiary10() {
		return subsidiary10;
	}

	public void setSubsidiary10(String subsidiary10) {
		this.subsidiary10 = subsidiary10;
	}

	public String getSystemid() {
		return this.systemid;
	}

	public void setSystemid(String systemid) {
		this.systemid = systemid;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getValidFlag() {
		return this.validFlag;
	}

	public void setValidFlag(Integer validFlag) {
		this.validFlag = validFlag;
	}

	public List<Resourceinfo> getChildList() {
		return childList;
	}

	public void setChildList(List<Resourceinfo> childList) {
		this.childList = childList;
	}

	public Integer getGrantFlag() {
		return grantFlag;
	}

	public void setGrantFlag(Integer grantFlag) {
		this.grantFlag = grantFlag;
	}

}